package com.iring.domain.config.prop;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * paypal配置属性
 *
 * @author wanggan
 */
@Configuration
@ConfigurationProperties(prefix = "com.zycoo.pay.alipay")
public class AliPayProperties {

    private String payUrl;

    private String appid;

    private String appPrivateKey;

    private String alipayPubKey;

    private String format;

    private String signType;
    private String orderTimeout;
    private String sellerId;

    private String productCode;

    private String returnUrl;

    private String notifyUrl;


    @Override
    public String toString() {
        return "{payUrl:" + payUrl + ",appid:" + appid + ",appPrivateKey:"
                + appPrivateKey + ",alipayPubKey:" + alipayPubKey + ",format:"
                + format + ",signType:" + signType + ",orderTimeout:" + orderTimeout
                + ",sellerId:" + sellerId + ",productCode:" + productCode + ",returnUrl:"
                + returnUrl + ",notifyUrl:" + notifyUrl + "}";
    }

    public String getPayUrl() {
        return payUrl;
    }

    public String getAppid() {
        return appid;
    }

    public String getAppPrivateKey() {
        return appPrivateKey;
    }

    public String getAlipayPubKey() {
        return alipayPubKey;
    }

    public String getFormat() {
        return format;
    }

    public String getSignType() {
        return signType;
    }

    public String getOrderTimeout() {
        return orderTimeout;
    }

    public String getSellerId() {
        return sellerId;
    }

    public String getProductCode() {
        return productCode;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setPayUrl(String payUrl) {
        this.payUrl = payUrl;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public void setAppPrivateKey(String appPrivateKey) {
        this.appPrivateKey = appPrivateKey;
    }

    public void setAlipayPubKey(String alipayPubKey) {
        this.alipayPubKey = alipayPubKey;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public void setOrderTimeout(String orderTimeout) {
        this.orderTimeout = orderTimeout;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }
}
